go/printer.printer.posFor (method)
20 uses
go/printer (current package)
nodes.go#L78: p.flush(p.posFor(g.List[0].Pos()), token.ILLEGAL)
nodes.go#L129: prev := p.posFor(prev0)
nodes.go#L130: next := p.posFor(next0)
nodes.go#L141: prev := p.posFor(prev0)
nodes.go#L142: next := p.posFor(next0)
nodes.go#L497: hasComments := isIncomplete || p.commentBefore(p.posFor(rbrace))
nodes.go#L596: p.flush(p.posFor(rbrace), token.RBRACE) // make sure we don't lose the last line comment
nodes.go#L637: p.flush(p.posFor(rbrace), token.RBRACE) // make sure we don't lose the last line comment
nodes.go#L1508: if len(body.List) == 0 && !p.commentBefore(p.posFor(body.Rbrace)) {
nodes.go#L1854: bodySize := p.commentSizeBefore(p.posFor(pos2))
nodes.go#L1914: if startPos.IsValid() && p.pos.IsValid() && p.posFor(startPos).Line == p.pos.Line {
printer.go#L132: p.commentOffset = p.posFor(list[0].Pos()).Offset
printer.go#L184: func (p *printer) posFor(pos token.Pos) token.Position {
printer.go#L631: pos := p.posFor(comment.Pos())
printer.go#L743: p.posFor(p.comment.Pos()).Column == 1 &&
printer.go#L744: p.posFor(p.comment.End()+1) == next {
printer.go#L753: p.writeCommentPrefix(p.posFor(p.comment.Pos()), next, last, tok)
printer.go#L763: p.writeCommentPrefix(p.posFor(c.Pos()), next, last, tok)
printer.go#L771: p.pos = p.posFor(last.End())
printer.go#L887: p.pos = p.posFor(pos) // accurate position of next item
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)